REM if "%~1" == "" (
REM set vcver=2005
REM echo vcver未设置,将其设置为默认值vc
REM ) else (
REM set vcver=%~1
REM )


rem call "E:\App DownLoad\Visrual Studio 2005\Common7\Tools\vsvars32.bat"
rem call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat"
rem 下一句报错:c:\vc\UEIRC\unrealircd-libs\curl\include\curl/curl.h(2052): error C2059: 语法错误:“<<”
rem call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\vsvars32.bat"
rem call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
rem call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\vcvarsamd64_x86.bat"
rem call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"

set UEIRCTop_dir=d:\UnrealIRCd

set cygwin_ROOT=C:\cygwin64
set cygwin_BIN_DIR=%cygwin_ROOT%\bin
set cygwin_INCLUDE_DIR=%cygwin_ROOT%\usr\include

rem set UEPgSQLTop_dir=C:\Program Files\PostgreSQL\13

set UEPgSQLTop_dir=D:\PgSQL

set UEIRCsrc_dir=%UEIRCTop_dir%\unreal-ircd
set UEIRClib_dir=%UEIRCTop_dir%\unrealircd-5-libs
rem set UEIRClib_dir=%UEIRCTop_dir%\unrealircd-libs
set PATH=%UEIRClib_dir%;%cygwin_BIN_DIR%;%PATH%

call %UEIRCsrc_dir%\SetIncLibPath5.bat
rem call %UEIRCsrc_dir%\SetIncLibPath.bat

rem call %UEIRCsrc_dir%\vcvars%vcver%.bat

rem nmake -f MakefileVC2005.windows clean

rem nmake -f MakefileVC2005.windows SYMBOLFILE

rem nmake -f MakefileVC2017.windows

rem nmake -f MakefileVC2017.windows clean

rem nmake -f MakefileVC2017.windows SYMBOLFILE

rem nmake -f MakefileVC%vcver%.windows SYMBOLFILE

rem nmake -f Makefile.windows

nmake -f Makefile.windows clean

rem nmake -f Makefile.windows SYMBOLFILE
